package com.wangjiacai.hqlQuery.role.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-05-07 18:08:18
 */
@Data
@Entity
@Table(name ="tbl_role")
@DynamicUpdate
@Proxy(lazy = false)
public class Role extends SupperEntity{

    /*角色名称*/
    @NotBlank(message = "角色名称不能为空")
    private String name;

    /*角色描述*/
    private String remark;

}
